package com.suyang.syt.model;

import javax.persistence.Entity;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "T_PIC")
public class Pic extends BaseEntity {
	/** 图片路径 */
	private String path;

	/** 图片宽度 */
	private int width;

	/** 图片高度 */
	private int height;

	/** 图片类型(jpg/png/gif) */
	private String type;

	/** 点击图片对应的URL地址 */
	private String url;

	/** 图片对应的Banner广告ID */
	private long bid;

	/** 被点赞数量,点击一次，加1 */
	private int picLikeNums;

	public int getPicLikeNums() {
		return picLikeNums;
	}

	public void setPicLikeNums(int picLikeNums) {
		this.picLikeNums = picLikeNums;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public long getBid() {
		return bid;
	}

	public void setBid(long bid) {
		this.bid = bid;
	}

	/** 生成图片文件名 */
	public synchronized static String createPicName() {
		return String.valueOf(System.currentTimeMillis());
	}

}
